package com.ibm.psbc.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
public class NacosProviderApplication {
    public static void main(String[] args) {
    	//loadRules();
        SpringApplication.run(NacosProviderApplication.class, args);
    }
//    @Bean
//    ContextUtils<TestContext> getContextUtils(){
//    	return new ContextUtils<TestContext>(TestContext.class);
//    }
//    private static void loadRules() {
//        ReadableDataSource<String, List<FlowRule>> flowRuleDataSource = new NacosDataSource<>("localhost", "Sentinel:Demo", "com.alibaba.csp.sentinel.demo.flow.rule",
//                source -> JSON.parseObject(source, new TypeReference<List<FlowRule>>() {
//                }));
//        FlowRuleManager.register2Property(flowRuleDataSource.getProperty());
//    }
}